<!-- Copyright (c) Eric Legault Consulting Inc. Licensed under the MIT License. -->

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Outlook Event-Based Activation Sample Add-in</title>

    <script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
    <script type="text/javascript" src="taskpane.js"></script>
    <!-- For more information on Fluent UI, visit https://developer.microsoft.com/fluentui#/. -->
    <link rel="stylesheet" href="https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/office-ui-fabric-core/11.1.0/css/fabric.min.css"/>

    <!-- Template styles -->
    <link href="taskpane.css" rel="stylesheet" type="text/css" />
</head>

<body class="ms-font-m ms-welcome ms-Fabric">
    <!-- The following image URL tracks diagnostic data for this sample add-in. Please remove the image tag if you reuse this sample in your own code project. -->
    <img src="https://pnptelemetry.azurewebsites.net/pnp-officeaddins/samples/outlook-encrypt-attachments-run" />

    <header class="ms-welcome__header ms-bgColor-info">
        <h3 class="ms-font-xl" style="text-align: center;">Outlook Event-Based Activation Sample Add-in</h3>        
    </header>
    <section id="sideload-msg" class="ms-welcome__main">
        <h2 class="ms-font-xl">Please sideload your add-in to see app body.</h2>
    </section>
    <main id="app-body" class="ms-welcome__main" style="display: none;">
        <h2 class="ms-font-xl ms-fontWeight-bold"> Demo Instructions </h2>
        <p class="ms-font-m">This add-in will showcase how to use event-based activation to handle the <i>OnMessageComposeHandler</i> and <i>OnMessageAttachmentsChanged</i> event handlers.</p>
        <p class="ms-font-m">For more information, see <a target="_blank" href="https://learn.microsoft.com/en-ca/office/dev/add-ins/outlook/autolaunch#event-based-activation-behavior-and-limitations">Configure your Outlook add-in for event-based activation</a></p>
        <ul class="ms-List ms-welcome__features">
            <li class="ms-ListItem">
                <i class="ms-Icon ms-Icon--Attach ms-font-m"></i><i class="ms-Icon ms-Icon--Add ms-font-m"></i>
                <span class="ms-font-m">Add any attachment</span>
            </li>
            <li class="ms-ListItem">
                <i class="ms-Icon ms-Icon--Attach ms-font-m"></i><i class="ms-Icon ms-Icon--Lock ms-font-m"></i>
                <span class="ms-font-m">A copy of the attachment will be added with "encrypted_" prefixed to the original file name</span>
            </li>
            <li class="ms-ListItem">
                <i class="ms-Icon ms-Icon--Attach ms-font-m"></i><i class="ms-Icon ms-Icon--Unlock ms-font-m"></i>
                <span class="ms-font-m">The encrypted attachment will then be decrypted and added as a third attachment with "decrypted_" prefixed to the original file name</span>
            </li>
        </ul>
    </main>
</body>

</html>
